import service from '@/utils/request'
// @Tags CrimeElementType
// @Summary 创建罪量要素管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CrimeElementType true "创建罪量要素管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /CET/createCrimeElementType [post]
export const createCrimeElementType = (data) => {
  return service({
    url: '/CET/createCrimeElementType',
    method: 'post',
    data
  })
}

// @Tags CrimeElementType
// @Summary 删除罪量要素管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CrimeElementType true "删除罪量要素管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CET/deleteCrimeElementType [delete]
export const deleteCrimeElementType = (params) => {
  return service({
    url: '/CET/deleteCrimeElementType',
    method: 'delete',
    params
  })
}

// @Tags CrimeElementType
// @Summary 批量删除罪量要素管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除罪量要素管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CET/deleteCrimeElementType [delete]
export const deleteCrimeElementTypeByIds = (params) => {
  return service({
    url: '/CET/deleteCrimeElementTypeByIds',
    method: 'delete',
    params
  })
}

// @Tags CrimeElementType
// @Summary 更新罪量要素管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CrimeElementType true "更新罪量要素管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /CET/updateCrimeElementType [put]
export const updateCrimeElementType = (data) => {
  return service({
    url: '/CET/updateCrimeElementType',
    method: 'put',
    data
  })
}

// @Tags CrimeElementType
// @Summary 用id查询罪量要素管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.CrimeElementType true "用id查询罪量要素管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /CET/findCrimeElementType [get]
export const findCrimeElementType = (params) => {
  return service({
    url: '/CET/findCrimeElementType',
    method: 'get',
    params
  })
}

// @Tags CrimeElementType
// @Summary 分页获取罪量要素管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取罪量要素管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /CET/getCrimeElementTypeList [get]
export const getCrimeElementTypeList = (params) => {
  return service({
    url: '/CET/getCrimeElementTypeList',
    method: 'get',
    params
  })
}

// @Tags CrimeElementType
// @Summary 不需要鉴权的罪量要素管理接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.CrimeElementTypeSearch true "分页获取罪量要素管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /CET/getCrimeElementTypePublic [get]
export const getCrimeElementTypePublic = () => {
  return service({
    url: '/CET/getCrimeElementTypePublic',
    method: 'get',
  })
}
